#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
实时流式ASR启动脚本

快速启动边说边识别功能
"""

import sys
import os

# 添加项目根目录到路径
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

# 导入并运行示例
from example.realtime_streaming_example import main
import asyncio

if __name__ == "__main__":
    print("🚀 启动实时流式语音识别系统...")
    print()
    
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        print("\n\n👋 已退出")
    except Exception as e:
        print(f"\n\n❌ 启动失败: {e}")
        import traceback
        traceback.print_exc()
        sys.exit(1)

